package com.ydl.learning.flink.demo.janino;

/**
 * @author ydl
 * @since 2022/1/13
 */
public class Template {
  public static boolean isTrue(Entity entity) {
    return entity.getAge() > 10;
  }

  public static boolean nameCompare(Entity entity, String name) {
    return entity.getName().equals(name);
  }

  public static boolean ageCompare(Entity entity, int age) {
    return entity.getAge() > age;
  }
}
